From: Georges Basile Stavracas Neto Date: Thu, 6 Feb 2020 20:20:48 +0000 (-0300) Subject: authPrompt: Trivial style cleanup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~777^2^2~72 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=db4dfd8fa539a4a0c30a134030e9bcddb52bcb82;p=gnome-shell.git authPrompt: Trivial style cleanup https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 82852207e..1a36b994e 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -181,10 +181,10 @@ var AuthPrompt = GObject.registerClass({ } _updateEntry(secret) { - if (secret && (this._entry != this._passwordEntry)) { + if (secret && this._entry !== this._passwordEntry) { this._mainBox.replace_child(this._entry, this._passwordEntry); this._entry = this._passwordEntry; - } else if (!secret && (this._entry != this._textEntry)) { + } else if (!secret && this._entry !== this._textEntry) { this._mainBox.replace_child(this._entry, this._textEntry); this._entry = this._textEntry; }